package com.axxc.jpa.pattendegign.abstractfactory;

public class BFactory extends AbstractFactory {

	@Override
	public A getA(String name) {
		return null;
	}

	@Override
	public B getB(String name) {

		B b = null;
		if ("B1".equals(name)) {
			b = new B1();
		} else if ("B2".equals(name)) {
			b = new B2();
		}
		return b;
	}

}
